﻿namespace DeviceFaultPushService.MessagePushService.Communication;

public interface ICommunication
{
    /// <summary>
    /// 连接状态
    /// </summary>
    public bool IsConnected { get; }
    /// <summary>
    /// 连接
    /// </summary>
    /// <returns></returns>
    public bool Connect();
    /// <summary>
    /// 关闭
    /// </summary>
    public void Disconnect();
    /// <summary>
    /// 发送消息
    /// </summary>
    /// <param name="phone"></param>
    /// <param name="message"></param>
    /// <param name="results"></param>
    public void SendSms(string phone, string message, out string results);
    /// <summary>
    /// 拨打电话
    /// </summary>
    /// <param name="phone"></param>
    /// <param name="message"></param>
    /// <param name="results"></param>
    public void SendCall(string phone, string message, out string results);
}